import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    isCollapse: false
  },
  mutations: {
    collapseMenu(state){//改变方法，传递state
      state.isCollapse = !state.isCollapse;
    },
  },
  modules:{ /*引入其他模块的store*/

  }
})
